#
# "@(#) $Id: LStatusLogoProgressView.py,v 1.1.1.1 2006-07-27 03:16:08 gioshe Exp $"
#
# This work is released under the GNU GPL, version 2 or later.
#
from qt import *
from Utils.Paths import *
from  Utils.Settings import *


class StatusLogoProgressView(QWidget):
	def __init__(self,container):
		global _backColor
		QWidget.__init__(self,container,"statuslogo")
		self.logo = QPixmap(art("labellogo.png"))
		backColor=QColor(Settings.settings().get('ColorR'),Settings.settings().get('ColorG'),Settings.settings().get('ColorB'))
		self.setPaletteBackgroundColor(backColor)
		self.buildViews()
	
	def buildViews(self):
		layout = QHBoxLayout(self)
		layout.addItem(QSpacerItem(1,1,QSizePolicy.Expanding,QSizePolicy.Fixed))
		label = QLabel("",self)
		label.setPixmap(self.logo)
		layout.addWidget(label)
		layout.addItem(QSpacerItem(1,1,QSizePolicy.Expanding,QSizePolicy.Fixed))
